﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace TyNetCoreBlog.Models.Entities
{
    public class FriendlyLink
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        /// <summary>
        /// 网站名称
        /// </summary>
        [Display(Name = "网站名称")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string SiteName { get; set; }

        /// <summary>
        /// 网站链接
        /// </summary>
        [Display(Name = "网站链接")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string Link { get; set; }


        /// <summary>
        /// 排序
        /// </summary>
        [Display(Name = "排序")]
        public int Sort { get; set; }


        ///// <summary>
        ///// 创建日期
        ///// </summary>
        //[Display(Name = "创建日期")]
        //[DataType(DataType.DateTime)]
        //public DateTime CreateTime { get; set; }
    }
}
